/*
 * launcher_robot16_alex.cpp
 *
 */

#include "../middleware/CommunicationAdpt.h"
#include "../middleware/CommunicationDespacho.h"
#include "../middleware/CommunicationRobot16.h"
#include "../channel_common/ChannelInterface.h"
#include "../common/Argv.h"
#include "../IPC/ProcessAux.h"


int main ( int argc, char* argv[] )
{
	std::string hostName = "robot16_pc";

	Argv args;
	args.pushArg(hostName);
	channel::ChannelInterface::create(hostName);

	ProcessAux::launchProcess2("./out/channel_out_agente",1,args);
	ProcessAux::launchProcess2("./out/channel_in_agente",1,args);

	middleware::CommunicationAdpt::create(middleware::CommunicationAdpt::ROBOT_16,hostName);
	middleware::CommunicationDespacho::create(middleware::CommunicationDespacho::ROBOT_16,hostName);
	middleware::CommunicationRobot16::create(middleware::CommunicationRobot16::SIDE_ROBOT_16,hostName);

	//ProcessAux::launchProcess2("./out/robot16",1,args);

	return 0;
}

